home *** CD-ROM | disk | FTP | other *** search
- -- card: 12654 from stack: in.3r
- -- bmap block id: 0
- -- flags: 4000
- -- background id: 13187
- -- name: ArrowKeys
- ----- HyperTalk script -----
- on arrowKey direction
- if direction is "left" then put "That was left"
- if direction is "right" then put "That was right"
- if direction is "up" then put "That was up"
- if direction is "down" then put "That was down"
- end arrowkey
-
- on closecard
- hide message window
- end closecard
-
-
-
- -- part contents for background part 4
- ----- text -----
- 3
-
- -- part contents for background part 3
- ----- text -----
- --
- -- ΓÇóΓÇóΓÇóFrom Steve Drazga 12/87ΓÇóΓÇóΓÇó
- --
- -- To prevent the user from using a specific arrowkey replace "left"
- -- in the script with whatever key you want to disable.
- -- Click on an arrowkey to try this.
- --
- on arrowKey direction
- if direction is not "left" then pass arrowKey
- end arrowkey
-
- --
- --To disable all the arrowkeys use:
- --
- on arrowKey direction
- end arrowkey
-
- --
- -- To do something special when an arrowkey is selected, use:
- --
- on arrowkey direction
- if direction is up then
- --special instructions for up arrowkey go here.
- --there can be more than one.
- else
- pass arrowkey -- remember if you don't pass the arrowkey, they won't do anything!
- end if
- end arrowkey
-
-
-
- -- part contents for background part 2
- ----- text -----
- ArrowKeys
-
- -- part contents for background part 18
- ----- text -----
- Scripts